/*
 * @desc:
 * @LastEditTime: 2024-03-20 23:31:09
 * @params:
 * @return::
 */
import service from '../request.ts'

export const registerFn = (data) => {
  return service({
    method: 'POST',
    url: '/user/register',
    data,
  })
}

export const loginFn = (data) => {
  return service({
    method: 'POST',
    url: '/user/login',
    data,
  })
}

export const tokenConfirmFn = (data) => {
  return service({
    method: 'GET',
    url: '/user/getCurrentUser',
    data,
  })
}

export const updateOidFn = (data) => {
  return service({
    method: 'POST',
    url: '/user/updateOid',
    data,
  })
}
